<?php

Class Mpelanggan extends CI_Model
{
	function __construnct()
	{
		$this->load->database();
	}

	function getcus($term)
	{
		$sql = "select * from pelanggan where nama like '$term%'";
		//echo $sql;
		return $this->db->query($sql);
	}
}